const cache: any = {};

function importAll(r: any) {
  r.keys().forEach((key: any) => {
    const g: any = /\/(.*)\.tsx/.exec(key);
    cache[g && g[1]] = r(key);
  });
}
importAll(require.context('./', false, /(?<!index)\.tsx$/));
export default cache;
